﻿@using (@Html.BeginForm("Suasanpham", "Admin", FormMethod.Post))
{

    <h1>Sửa sản phẩm</h1>

    <div class="form-group">
        <label>Mã sản phẩm</label>
        <input class="form-control" type="hidden" name="ma" value="@ViewBag.ma">
    </div>

    <div class="form-group">
        <label>Tên sản phẩm</label>
        <input class="form-control" name="ten" value="@ViewBag.ten">
    </div>
     <div class="form-group">
        <label>ID cha</label>
        <select id="Select1" class="form-control" name="idcha">
            <option value="0">0</option>
            @foreach (var item in ViewBag.idcha)
            {
                <option value="@item.id">@item.ten</option>
            }

        </select>

    </div>
    

    <button type="submit" class="btn btn-default">Sửa</button>
}